]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
portalHelper: Use the correct enum values
authorCatalin Iacob <iacobcatalin@gmail.com>
Thu, 23 Mar 2017 17:27:40 +0000 (18:27 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 5 Apr 2017 07:27:07 +0000 (09:27 +0200)
Without this the tests never succeeded because they were comparing
loadEvent to undefined resulting in the icon not changing as it
should.

https://bugzilla.gnome.org/show_bug.cgi?id=780606

js/portalHelper/main.js

index f64cae49b052efdd87fc9e2c26fc8c4af9abe9e5..2928c761a48d3180c558782d36d10729aa7b8139 100644 (file)
@@ -188,9 +188,9 @@ const PortalWindow = new Lang.Class({
     },
 
     _onLoadChanged: function(view, loadEvent) {
-        if (loadEvent == WebKit.LOAD_STARTED) {
+        if (loadEvent == WebKit.LoadEvent.STARTED) {
             this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.NOT_YET_DETERMINED);
-        } else if (loadEvent == WebKit.LOAD_COMMITTED) {
+        } else if (loadEvent == WebKit.LoadEvent.COMMITTED) {
             let tlsInfo = this._webView.get_tls_info();
             let ret = tlsInfo[0];
             let flags = tlsInfo[2];